c9e706d9e84a828901a5ad97ed50aa46521f7bfb,wicket-orientdb/src/main/java/ru/ydn/wicket/wicketorientdb/rest/OrientDBHttpAPIResource.java,OrientDBHttpAPIResource,newResourceResponse,#Attributes#,67
Before Change
con.setUseCaches(false);
if("post".equalsIgnoreCase(method) || "put".equalsIgnoreCase(method))
{
con.setDoOutput(true);
IOUtils.copy(httpRequest.getInputStream(), con.getOutputStream());
}
IOUtils.copy(con.getInputStream(), out, "UTF-8");
After Change
if("post".equalsIgnoreCase(method) || "put".equalsIgnoreCase(method))
{
int contentLength = httpRequest.getContentLength();
con.setDoOutput(true);
String initialContentType = httpRequest.getContentType();
if(initialContentType!=null) con.setRequestProperty("Content-Type", initialContentType);
int copied = IOUtils.copy(httpRequest.getInputStream(), con.getOutputStream());